import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpVipSet {
  id!: number;
  name!: string;
  content?: unknown;
  uniacid!: number;
}

export const ImsYzdKpVipSetSchema = new EntitySchema({
  class: ImsYzdKpVipSet,
  properties: {
    id: { primary: true, type: 'number' },
    name: { type: 'string', length: 255 },
    content: { type: 'unknown', columnType: 'longtext', nullable: true },
    uniacid: { type: 'number', index: 'uniacid' },
  },
});
